package site.zsxeee.work.bootstrap.backend.util

import java.util.*
import javax.servlet.http.Cookie
import javax.servlet.http.HttpSession

operator fun Array<Cookie>.get(name:String): String? {
    val cookieMap = HashMap<String, String>()
    for (cookie in this) {
        cookieMap[cookie.name] = cookie.value
    }
    return cookieMap[name]
}

data class ResponseObject(
        val status:Boolean,
        val msg:String? = null
)